﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Http
{
    public class RegisterAccountInfo : AccountOperationInfo
    {
        public override void Read(System.IO.StreamReader reader)
        {
            string[] response = reader.ReadToEnd().Split('=');

            if (response[0] == "bad tokens")
                this.State = RequestState.Error;
            else
            {
                int number;
                Int32.TryParse(response[1], out number);
                Number = number;
                this.State = RequestState.Ready;
            }

        }
    }
}
